// we need to start the session for the login/logout link, but read.php sent headers already @session_start(); // remember what page we were on in the event that someone gets redirected to the login/reg page, they should come back here afterwards $_SESSION['auction']['lastPage'] = $_SERVER['REQUEST_URI']; //PASTE THIS CODE AT THE VERY TOP OF ALL PAGES WHICH USE DYNAMIC CONTENT $C['Version'] = 'ecv1.00'; //SETS THE VERSION OF THE EONCONNECT APPLICATION SUITE TO BE USED $C['LibPrefix'] = '/eclib/phplib/' . $C['Version']; //FINDS THE APPLICATION CODE ON THE SERVER $C['DbName'] = 'res_johns_ec'; //SETS THE DATABASE TO USE: require($C['LibPrefix'] . '/content_module/public/read.php'); //USES THE READ-ONLY CODE //find the current catalog $List = getList(22, array('Find' => ' AND DisplayDate >= NOW() ', 'Sort' => 'DisplayDate', 'Limit' => 1)); $Item = mysql_fetch_assoc($List); $CurrentId = $Item[Id]; if (!$Id) { $Id = $CurrentId; } if ($Id) { extract(getDetail($Id)); //PULL IN CONTENT FROM THE CONTENT FOR PAGE WITH THE GIVEN ID NUMBER ENCLOSED IN PARENTHESES //(The Id number for each page is found in the site map) $ItemsPerPage = 6; if (!$PageFirstItem) $PageFirstItem = 0; $Counts = getList($Id, array('Show' => array('Id', 'SortName'))); $LotNumbers = array(); $CountItems = array(); $FirstItemNumber = 0; while ($row = mysql_fetch_assoc($Counts)) { if (!$FirstItemNumber) $FirstItemNumber = $row['SortName']; $CountItems[] = $row; $LotNumbers[] = $row['SortName']; } $NumItems = mysql_num_rows($Counts); if ($GoToLot) { //user has entered a specific lot number - we need to caclulate the page it will appear on and display that page if ($Id == 5712) { if ($GoToLot > 99 && $GoToLot < 157) { $GoToLot = $GoToLot - 99; } elseif ($GoToLot < 179) { $GoToLot = $GoToLot - 98; } else {$GoToLot = $GoToLot - 97;} } $FoundLot = in_array(str_pad($GoToLot, 3, '0', STR_PAD_LEFT), $LotNumbers); /* if ($GoToLot > $NumItems || $GoToLot < 0) { */ // new verify method if (!$FoundLot || $GoToLot < 0) { $GoToError = true; echo "\n\n"; } else { $GoToLot = str_pad($GoToLot, 3, '0', STR_PAD_LEFT); foreach ($CountItems as $Sequence) { if ($GoToLot == $Sequence['SortName']) break; $SequenceNumber++; } $PageFirstItem = array_search($GoToLot, $LotNumbers); $ItemPageNumber = floor($PageFirstItem / $ItemsPerPage); } } $NextPageStart = $PageFirstItem + $ItemsPerPage; if ($PageFirstItem <= $ItemsPerPage) { $PreviousPageStart = 0; } else { $PreviousPageStart = $PageFirstItem - $ItemsPerPage; } $Counter = $PageFirstItem + 1; } ?>
|
|||||||||||||||||||||||||||||||||||||
|
|||||||||||||||||||||||||||||||||||||
|
|
Click Here to REGISTER. $SubHeads = getList($Id, array('Limit' => "$PageFirstItem, $ItemsPerPage")); if (mysql_num_rows($SubHeads) > 0) { ?> Questions about one of the lots in this catalogue, or about bidding? Call us at 1-888-543-9378 or email.
Click any image to view enlargement.
Questions about one of the lots in this catalogue, or about bidding? Call us at 1-888-543-9378 or email.
} else {?>The catalog for this sale will be available soon. } ?> } else {?> The catalogue for our upcoming sale is not yet available. Please check back soon, or contact us and we'll let you know when it's posted. } ?> |
||||||||||||||||||||||||||||||||||||
|
Johns' Western Gallery, 250 Sutter St., #350, San Francisco, CA 94108 |
|||||||||||||||||||||||||||||||||||||